
package com.cr.backbone.action;

import com.cr.backbone.hibenate.Pagination;
import com.cr.backbone.hibenate.QueryParam;
import com.opensymphony.xwork2.ActionSupport;

/**
 * 试图层action基类
 * 作用描述：
 * 1、统一记录当前登录者会话信息
 * 2、继承struts2：com.opensymphony.xwork2.ActionSupport
 */
public class AppBaseActionSupport  extends ActionSupport  implements AppBaseAction{

	private static final long serialVersionUID = 2385318010652126714L;
	
	private LoginInfo loginInfo ;// 当前登录者信息
	private String message;// 消息
	
	protected Pagination page=new Pagination();
	QueryParam query = new QueryParam();

	public LoginInfo getLoginInfo() {
		if (loginInfo == null) {
			loginInfo = new LoginInfo();
		}
		return loginInfo;
	}

	public void setLoginInfo(LoginInfo loginInfo) {
		this.loginInfo = loginInfo;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Pagination getPage() {
		return page;
	}

	public void setPage(Pagination page) {
		this.page = page;
	}

	public QueryParam getQuery() {
		return query;
	}

	public void setQuery(QueryParam query) {
		this.query = query;
	}

}
